package org.code.mallspringboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.code.mallspringboot.pojo.SmsCouponHistory;
import org.code.mallspringboot.service.SmsCouponHistoryService;
import org.code.mallspringboot.mapper.SmsCouponHistoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class SmsCouponHistoryServiceImpl implements SmsCouponHistoryService{

    @Autowired
    private SmsCouponHistoryMapper smsCouponHistoryMapper;

    @Override
    public List<SmsCouponHistory> selectByUseStatus(Integer status) {
        return smsCouponHistoryMapper.selectByUseStatus(status);
    }

    @Override
    public int add(SmsCouponHistory smsCouponHistory) {
        return smsCouponHistoryMapper.add(smsCouponHistory);
    }
}




